/**
 *
11 0x7ffc4a07ccb4
11 0x7ffc4a07ccb4
11 0x7ffc4a07ccb4
11 0x7ffc4a07ccb4
11 0x7ffc4a07ccb4
1 0x55707aaac014
2 0x55707aaac014
3 0x55707aaac014
4 0x55707aaac014
5 0x55707aaac014

 */
#include <stdio.h>

void fun1(){
	int a = 10;
	a++;
	printf("%d %p\n",a, &a);
}

void fun2(){
	//static修饰的变量  默认值是0,并且保留了上次的值，不会重新说明
	static int b;
	b++;
	printf("%d %p\n",b, &b);
}

int main(int argc, const char *argv[]){
	int i = 0;
	while(i < 5){
		fun1();
		i++;
	}
	i = 0;
	while(i < 5){
		fun2();
		i++;
	}
	return 0;
}
